﻿using DomainModel;
using Repository.Abstract;

namespace Repository.NHibernate
{
    public class MarkRepository : Repository<Mark>, IMarkRepository
    {
        public Mark GetByName(string name)
        {
            using (Session)
            {
                return Session.QueryOver<Mark>().Where(m => m.Name == name).SingleOrDefault();
            }
        }
    }
}